<template>
  <view class="root-portal">
    <slot> </slot>
  </view>
</template>

<script>
  export default {
    mounted() {
      if (this.$el && document && document.body) {
        document.body.appendChild(this.$el);
      }
    },
  };
</script>

<style lang="scss" scoped>
  .root-portal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 999999;
  }
</style>
